package com.ha.springcloud.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

//员工表
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)//该注解表示支持链式写法
public class Employee implements Serializable {

    private String id;
    private String name;
    private String email;
    private Integer gender;//0：女，1：男
    @DateTimeFormat(pattern="yyyy-MM-dd")  //前端页面转换到Date字段
    private Date birth;
    private String password;
    private String admin;
    private String department;
}
